package com.example.seckill.vo;

import com.example.seckill.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Author: Jason
 * @ClassName: LoginVo
 * @Description: 登录参数
 * @Package：com.example.seckill.vo
 * @Project：seckill
 * @name：LoginVo
 * @Filename：LoginVo
 **/

@Data
public class LoginVo {
    @NotNull
    @IsMobile//自定义组件
    private String mobile;

    @NotNull
    @Length(min = 32)
    private String password;

}
